<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/4/2
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Enumeration" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    Enumeration enu = request.getHeaderNames();
    while (enu.hasMoreElements()){
        String name = (String) enu.nextElement();
        String headerValue = request.getHeader(name);
%>
    <h3>
    <%= name %> ---->  <%= headerValue %>
    </h3>

<%
    }
%>



<%
    request.setCharacterEncoding("UTF-8");
    String id = request.getParameter("id");
    String name = request.getParameter("uname");
    String inst[] = request.getParameterValues("inst");
%>
<h3>编号：<%= id %></h3>
<h3>姓名：<%= name %></h3>
<%
    if (inst != null){
%>
<h3>兴趣：
<%
    for (int i = 0; i < inst.length; i++) {
          out.println(inst[i]);      
    }
%>
</h3>
<%
    }
%>
</body>
</html>
